Cockpit code-mode IDE polish + sidebar + theme-aware syntax#578
Merged
Conversation
Code mode: - Editor-style code pane: drop the doc-codeblock chrome (filename header, lang chip, Copy button), transparent bg, full-bleed under the tab strip - Shiki dual-theme (github-light / tokyo-night) so light mode is readable; swap to --shiki-dark via CSS on [data-theme="dark"] - Fix horizontal overflow: shell grid grid-cols-[minmax(0,1fr)] + pane overflow-x auto so long lines scroll inside the pane - Zed-style folder chevrons (SVG, rotate-on-expand) in the file tree Chrome + sidebar: - Mobile header: single justify-between row (hamburger left, mode switcher top-right) - Left-align Docs/API prose (remove margin-inline auto) to match the website - Sidebar: remove "cockpit" logo qualifier, bg-only active/hover (no left border), website-matched neutral hover (--ds-surface-dim), file-tree chevron Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up polish to the Code-mode file tree (#570), making Code mode read like a real editor and tightening the sidebar/docs to match the marketing website.
Code mode
doc-codeblockchrome (filename header, language chip, Copy button), transparent background, full-bleed under the tab strip — the Shiki body now reads like an editor, not a card.github-light/tokyo-night): light mode was unreadable (Tokyo Night colors on a cream background); now each theme gets its own palette, swapped via--shiki-darkon[data-theme="dark"].grid-cols-[minmax(0,1fr)]+ paneoverflow-x: autoso long lines scroll inside the pane.Chrome + sidebar
justify-betweenrow — hamburger left, mode switcher top-right (was stacking vertically).margin-inline: auto) to match the website docs.--ds-surface-dim=rgb(245,245,245), the exact value the website docs nav uses); group chevron now matches the file tree.Test plan
nx test cockpitgreen (22 files / 96 tests).🤖 Generated with Claude Code